import Vue from 'vue'
import Vuex from 'vuex'
import user from '@/store/modulses/user'
import createPersistedState from 'vuex-persistedstate'
import cart from '@/store/modulses/cart'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {},
  getters: {},
  mutations: {},
  actions: {},
  modules: {
    user,
    cart
  },
  plugins: [
    createPersistedState({
      // key: "vue2-mobile"
      // storage: localStorage,
      // paths: ['user']
    })
  ]
})
